package com.matt.domain.nursery;

import com.matt.commons.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * *******************************
 * Created by lch.
 * form com.matt
 * on 2018/11/27
 * *******************************
 */
@Entity
@Table(name = "nursery_schedule_temp")
@Data
@EqualsAndHashCode(callSuper = true)
public class NurseryScheduleTemp extends Domain {

    @Column(columnDefinition = "varchar(255) COMMENT '模版名称'")
    private String name;

    @Column(columnDefinition = "datetime COMMENT '课程时间'")
    private Date lessonDate;

    @Column(columnDefinition = "varchar(32) COMMENT '园区id'")
    private String areaId;

    @Column(columnDefinition = "varchar(32) COMMENT '创建者Id'")
    private String staffId;

    public static NurseryScheduleTemp of(String name,Date lessonDate,String areaId,String staffId){
        NurseryScheduleTemp vo = new NurseryScheduleTemp();
        vo.setName(name);
        vo.setLessonDate(lessonDate);
        vo.setAreaId(areaId);
        vo.setStaffId(staffId);
        return vo;
    }
}
